public class ScopeProtocol extends SerializationProtocol<Scope>
Scope instance. The condition of use is public constructor with arguments Map and Object[]! | Constructor and Description |
|---|
ScopeProtocol() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<? extends Scope> |
applicableFor() |
java.lang.Object[] |
serialize(Scope object) |
Scope |
unserialize(java.lang.Class<? extends Scope> objectClass,
java.lang.Object... args) |
equals, isActive, setActive, toStringpublic java.lang.Object[] serialize(Scope object)
serialize in class SerializationProtocol<Scope>object - | The object.public Scope unserialize(java.lang.Class<? extends Scope> objectClass, java.lang.Object... args) throws java.lang.Exception
unserialize in class SerializationProtocol<Scope>objectClass - | The class of object that should be created. This can be useful when object T has children classes with same constructors. You can use reflection to make protocol working also for these child classes!args - | Args to create obj T from.T created from args.java.lang.Exception - you can just pass exception to Serializer if you are not interested in handling it on your own.public java.lang.Class<? extends Scope> applicableFor()
applicableFor in class SerializationProtocol<Scope>T